<template>
  <div>
    <!--  app
    <input type="button" value="点我试试" @click="sayhi" />-->
    <!-- 使用头部组件 -->
    <top></top>
    <index></index>
  </div>
</template>

<script>
//导入
import top from "./components/01.top.vue";
import index from "./components/02.index.vue";
export default {
  //注册组件
  components: {
    top,
    index
  },
  methods: {
    sayhi() {
      alert("sayhi");
    }
  }
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
</style>